package wwy.Entity;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;
import wwy.Entity.orgEntity.LogicEntity;

import java.util.Set;

@Getter
@Setter
@Entity
public class Book extends LogicEntity {
    private String bookName;
    private String bookAuthor;
    private String bookCover;
    private Double bookRatings;
    private String bookType;
    private String bookAbstract;
    private String bookAddress;
    private String localBookAddress;
    private Double totalChar;

    @OneToMany(mappedBy = "book",
            fetch = FetchType.LAZY,
            cascade = CascadeType.ALL)
    private Set<Catalogue> catalogues;
}
